package org.csu.jpetstore_users_backend_pj.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.csu.jpetstore_users_backend_pj.entity.Profile;
import org.springframework.stereotype.Repository;

@Repository
public interface ProfileMapper extends BaseMapper<Profile> {
    @Select("SELECT * FROM PROFILE WHERE USERID = #{userid}")
    Profile getProfileByUserId(@Param("userid") String userid);
}
